﻿using System;
using System.Linq;

class PrintSumOfFiveCheckedNumbers
{
    static void Main(string[] args)
    {
		System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;
        // Read and sum numbers
        decimal number;
        decimal sum = 0;
        for (int i = 1; i <= 5; i++)
        {
            string input;
            do
            {
                input = Console.ReadLine();
            } 
            while (!decimal.TryParse(input, out number));

            sum += number;
        }

        // Print result
        Console.WriteLine(sum);
    }
}
